package com.jt.controller;

import com.jt.pojo.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController // 功能等同于 @Controller + @ResponseBody
@RequestMapping("/acb")
public class RestUserController {
    // url = http://localhost:8080/acd/findJson
    @RequestMapping("/findJson")
    public User findUser(User user){
        return user;
    }
}
